From: Dirk Brenken Date: Mon, 8 Dec 2025 17:42:20 +0000 (+0100) Subject: unbound: minimal fix for odhcpd lease file parsing X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22http:/www.crowdsec.net/%22/%22https:/collectd.org/%22http:/www.crowdsec.net/%22?a=commitdiff_plain;h=4a7220021403c6186d837b39eea3d2eb702ad66b;p=feed%2Fpackages.git unbound: minimal fix for odhcpd lease file parsing Current odhcpd in master writes MAC addresses with colons in his lease file, this new odhcpd format leads to a crash loop in unbound (if DHCPv4 to SLAAC is selected). Just remove the colons, before the processing in slaac_eui64 begins, fixes #28032 Signed-off-by: Dirk Brenken --- diff --git a/net/unbound/Makefile b/net/unbound/Makefile index 08f87265c1..2669dec503 100644 --- a/net/unbound/Makefile +++ b/net/unbound/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=unbound PKG_VERSION:=1.24.0 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://nlnetlabs.nl/downloads/unbound diff --git a/net/unbound/files/odhcpd.awk b/net/unbound/files/odhcpd.awk index 5214500f78..7b261c5012 100644 --- a/net/unbound/files/odhcpd.awk +++ b/net/unbound/files/odhcpd.awk @@ -190,6 +190,9 @@ function ipv6_ptr( ipv6, arpa, ary, end, m, n, new6, sz, start ) { ############################################################################## function slaac_eui64( mac, ary, glbit, eui64 ) { + # Remove any colons from mac + gsub(":", "", mac) ; + if ( length(mac) >= 12 ) { # RFC2373 and use DHCPv4 registered MAC to find SLAAC addresses split( mac , ary , "" ) ;